package birdsVSZombiesClient.gameGraphic;

import processing.core.PConstants;
import processing.core.PShape;

public class BVZGameShapeCircles extends BVZGameShape {
		
	public BVZGameShapeCircles(String type, float shapePosX, float shapePosY,
			float shapeSizeX, float shapeSizeY, float shapeAngle,
			int shapeFillColor, int shapeStrokeColor, int shapeStrokeWeight, 
			int largeContactNum, int currentCollisionNum) {
		super(shapePosX, shapePosY, shapeSizeX, shapeSizeY, shapeAngle,
				shapeFillColor, shapeStrokeColor, shapeStrokeWeight, currentCollisionNum, 3);
		this.gst = type;
		this.lcn = largeContactNum;
	}

	public BVZGameShapeCircles() {
		super();
	}
	
	public void display(){
		
		try{
			parent.imageMode(PConstants.CENTER);
			parent.pushMatrix();
			parent.translate(this.spx, this.spy);
			parent.rotate(this.sa);
			parent.image(this.si, 0, 0, this.ssx*2, this.ssy*2);
			parent.popMatrix();
		}catch(NullPointerException e){
			e.printStackTrace();
		}
	}
	
}
